package com.neiquan.weiguan.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.neiquan.weiguan.R;
import com.neiquan.weiguan.activity.ContainerActivity;
import com.neiquan.weiguan.fragment.base.AppBaseFragment;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * 我的----->兑换礼物
 */
public class ExchangeGiftFragment extends AppBaseFragment {

    @InjectView(R.id.lin_gift_two)
    LinearLayout mLinGiftTwo;
    @InjectView(R.id.lin_gift_three)
    LinearLayout mLinGiftThree;
    @InjectView(R.id.lin_gift_one)
    LinearLayout mLinGiftOne;

    @Override
    public View initRootView() {
        rootView = LayoutInflater.from(getContext()).inflate(R.layout.fragment_exchangegift, null);
        ButterKnife.inject(this, rootView);
        return rootView;
    }

    @Override
    public void setViews() {
        setTitleTv("兑换礼物");
    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.lin_gift_two, R.id.lin_gift_three, R.id.lin_gift_one})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.lin_gift_two:
                ContainerActivity.startActivity(getContext(), CashGiftFragment.class, null);
                break;
            case R.id.lin_gift_three:
                ContainerActivity.startActivity(getContext(), CashGiftFragment.class, null);
                break;
            case R.id.lin_gift_one:
                ContainerActivity.startActivity(getContext(), CashGiftFragment.class, null);
                break;
        }
    }
}
